package com.ruibang.glass.purchase.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.common.domain.camunda.BpmProcessInstanceCreate;
import com.ruibang.glass.purchase.domain.req.PurchaseContractsReq;
import com.ruibang.glass.purchase.entity.PurchaseContracts;

import java.util.List;

/**
 * <p>
 * 采购合同信息表 服务类
 * </p>
 *
 * @author mameng
 * @since 2024-03-27
 */
public interface PurchaseContractsService extends IService<PurchaseContracts> {
    /**
     * 采购合同信息表 列表
     * @param purchaseContractsReq
     * @return
     */
    IPage<PurchaseContracts> getPage(PurchaseContractsReq purchaseContractsReq);
    /**
     * 流程
     * @param purchaseContracts
     * @return
     */
    void addPurchaseContracts(PurchaseContracts purchaseContracts);

    void addSignature(PurchaseContracts purchaseContracts);

    void processStart(BpmProcessInstanceCreate bpmProcessInstanceCreate);

    void updateGPurchaseContracts(PurchaseContracts gPurchaseContracts);

    void addAbolishFile(PurchaseContracts purchaseContracts);

    PurchaseContracts getOneById(String id);

    /**
     * 流程步骤完成通知
     * @param businessId
     */
    void processNotice(String businessId);

    String getChildNumber(PurchaseContracts purchaseContracts);

    void batchDelete(List<String> ids);

}
